package cn.java76.springboot.demo1.entity;


import java.util.Date;

public class OUnit {

  private long id;
  private String name;
  private String description;
  private long majorid;
  private long level;
  private int inuse;
  private Date createtime;
  private Date modifytime;
  private String mname;

  public OUnit() {
  }

  public OUnit(String name, String description, long majorid, long level, int inuse, Date createtime, Date modifytime) {
    this.name = name;
    this.description = description;
    this.majorid = majorid;
    this.level = level;
    this.inuse = inuse;
    this.createtime = createtime;
    this.modifytime = modifytime;
  }

  public String getMname() {
    return mname;
  }

  public void setMname(String mname) {
    this.mname = mname;
  }

  public OUnit(long id, String name, String description, long majorid, long level, Date createtime, Date modifytime) {
    this.id = id;
    this.name = name;
    this.description = description;
    this.majorid = majorid;
    this.level = level;
    this.createtime = createtime;
    this.modifytime = modifytime;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public long getMajorid() {
    return majorid;
  }

  public void setMajorid(long majorid) {
    this.majorid = majorid;
  }

  public long getLevel() {
    return level;
  }

  public void setLevel(long level) {
    this.level = level;
  }

  public int getInuse() {
    return inuse;
  }

  public void setInuse(int inuse) {
    this.inuse = inuse;
  }

  public Date getCreatetime() {
    return createtime;
  }

  public void setCreatetime(Date createtime) {
    this.createtime = createtime;
  }

  public Date getModifytime() {
    return modifytime;
  }

  public void setModifytime(Date modifytime) {
    this.modifytime = modifytime;
  }

  @Override
  public String toString() {
    return "OUnit{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", description='" + description + '\'' +
            ", majorid=" + majorid +
            ", level=" + level +
            ", inuse=" + inuse +
            ", createtime=" + createtime +
            ", modifytime=" + modifytime +
            ", mname='" + mname + '\'' +
            '}';
  }
}
